import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const constantRouterMap = [
  {path:'/',redirect:'/login'},
  {path: '/login',component: resolve => require(['login/index'], resolve)},
  {path: '/home',component: resolve => require(['home/index'], resolve)}, 
  {path: '/error404',component: resolve => require(['error/error404'], resolve)}, 
  {path: '/error401',component: resolve => require(['error/error401'], resolve)}, 
<<<<<<< HEAD
  {path: '/listform',component: resolve => require(['listform/index'], resolve)}, 
=======
  {path: '/table',component: resolve => require(['table/table'], resolve)}, 
>>>>>>> 01b3074087ba62f7cc84c8ad71ff7d063c93170c
]

export default new Router({
  routes: constantRouterMap
})
